package com.free.wang.demo02.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.free.wang.demo02.mapper.CourseMapper;
import com.free.wang.demo02.entity.Course;

import javax.annotation.Resource;

/**
 * @author admin
 * @Description ${Description}
 * @date 2020-07-04 16:22:00
 */
@Service
public class CourseService {

    @Autowired
    private CourseMapper courseMapper;

    public int deleteByPrimaryKey(String cId) {
        return courseMapper.deleteByPrimaryKey(cId);
    }

    public int insert(Course record) {
        return courseMapper.insert(record);
    }

    public int insertSelective(Course record) {
        return courseMapper.insertSelective(record);
    }

    public Course selectByPrimaryKey(String cId) {
        return courseMapper.selectByPrimaryKey(cId);
    }

    public int updateByPrimaryKeySelective(Course record) {
        return courseMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Course record) {
        return courseMapper.updateByPrimaryKey(record);
    }

}
